package com.haiyou.dc.aggregate.list;

import java.util.LinkedList;
import java.util.List;

public class LinkedListTest {

    public static void main(String[] args) {
        List<String> strList = new LinkedList<>();
        strList.add("AA");
        strList.add("BB");
        strList.add("AeeA");
        strList.add("ASA");
        strList.add("A3232A");
        strList.add(null);
        strList.add("A3232A");

        System.out.println(strList);

//        Object[] objects = strList.toArray();

        String peek = ((LinkedList<String>) strList).peek();
        System.out.println(peek);

        String pop = ((LinkedList<String>) strList).pop();
        System.out.println(pop);

        System.out.println(strList);

    }
}
